<%@ page import="org.bjou.Course" %>
<!doctype html>
<html>
  <head>
    <meta name="layout" content="pertho">
  <g:set var="entityName" value="${message(code: 'course.label', default: 'Course')}" />
  <title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>
  <div class="container">
    <div class="row">
      <div class="twelve columns">
        <div class="box_c">
          <div class="box_c_heading cf">
            <p><g:message code="default.show.label" args="[entityName]" /></p>
          </div>
          <div class="box_c_content">
            <!-- start -->
            <div id="show-course" class="content scaffold-show" role="main">
              <g:if test="${flash.message}">
                <div class="message" role="status">${flash.message}</div>
              </g:if>
              <ol class="property-list course">
                <g:if test="${courseInstance?.credit}">
                  <li class="fieldcontain">
                    <span id="credit-label" class="property-label"><g:message code="course.credit.label" default="Credit" /></span>

                    <span class="property-value" aria-labelledby="credit-label"><g:fieldValue bean="${courseInstance}" field="credit"/></span>

                  </li>
                </g:if>

                <g:if test="${courseInstance?.courseType}">
                  <li class="fieldcontain">
                    <span id="courseType-label" class="property-label"><g:message code="course.courseType.label" default="Course Type" /></span>

                    <span class="property-value" aria-labelledby="courseType-label"><g:fieldValue bean="${courseInstance}" field="courseType"/></span>

                  </li>
                </g:if>

                <g:if test="${courseInstance?.courseProperty}">
                  <li class="fieldcontain">
                    <span id="courseProperty-label" class="property-label"><g:message code="course.courseProperty.label" default="Course Property" /></span>

                    <span class="property-value" aria-labelledby="courseProperty-label"><g:fieldValue bean="${courseInstance}" field="courseProperty"/></span>

                  </li>
                </g:if>

                <g:if test="${courseInstance?.courseId}">
                  <li class="fieldcontain">
                    <span id="courseId-label" class="property-label"><g:message code="course.courseId.label" default="Course Id" /></span>

                    <span class="property-value" aria-labelledby="courseId-label"><g:fieldValue bean="${courseInstance}" field="courseId"/></span>

                  </li>
                </g:if>

                <g:if test="${courseInstance?.courseName}">
                  <li class="fieldcontain">
                    <span id="courseName-label" class="property-label"><g:message code="course.courseName.label" default="Course Name" /></span>

                    <span class="property-value" aria-labelledby="courseName-label"><g:fieldValue bean="${courseInstance}" field="courseName"/></span>

                  </li>
                </g:if>

                <g:if test="${courseInstance?.examType}">
                  <li class="fieldcontain">
                    <span id="examType-label" class="property-label"><g:message code="course.examType.label" default="Exam Type" /></span>

                    <span class="property-value" aria-labelledby="examType-label"><g:fieldValue bean="${courseInstance}" field="examType"/></span>

                  </li>
                </g:if>

                <g:if test="${courseInstance?.courseTerm}">
                  <li class="fieldcontain">
                    <span id="courseTerm-label" class="property-label"><g:message code="course.courseTerm.label" default="Course Term" /></span>

                    <span class="property-value" aria-labelledby="courseTerm-label"><g:fieldValue bean="${courseInstance}" field="courseTerm"/></span>

                  </li>
                </g:if>

                <g:if test="${courseInstance?.entryTerm}">
                  <li class="fieldcontain">
                    <span id="entryTerm-label" class="property-label"><g:message code="course.entryTerm.label" default="Entry Term" /></span>

                    <span class="property-value" aria-labelledby="entryTerm-label"><g:fieldValue bean="${courseInstance}" field="entryTerm"/></span>

                  </li>
                </g:if>

                <g:if test="${courseInstance?.examNumber}">
                  <li class="fieldcontain">
                    <span id="examNumber-label" class="property-label"><g:message code="course.examNumber.label" default="Exam Number" /></span>

                    <span class="property-value" aria-labelledby="examNumber-label"><g:fieldValue bean="${courseInstance}" field="examNumber"/></span>

                  </li>
                </g:if>

                <g:if test="${courseInstance?.examNumberB}">
                  <li class="fieldcontain">
                    <span id="examNumberB-label" class="property-label"><g:message code="course.examNumberB.label" default="Exam Number B" /></span>

                    <span class="property-value" aria-labelledby="examNumberB-label"><g:fieldValue bean="${courseInstance}" field="examNumberB"/></span>

                  </li>
                </g:if>

                <g:if test="${courseInstance?.department}">
                  <li class="fieldcontain">
                    <span id="department-label" class="property-label"><g:message code="course.department.label" default="Department" /></span>

                    <span class="property-value" aria-labelledby="department-label"><g:fieldValue bean="${courseInstance}" field="department.departmentName"/></span>

                  </li>
                </g:if>

                <g:if test="${courseInstance?.majorLevel}">
                  <li class="fieldcontain">
                    <span id="majorLevel-label" class="property-label"><g:message code="course.majorLevel.label" default="Major Level" /></span>

                    <span class="property-value" aria-labelledby="majorLevel-label"><g:fieldValue bean="${courseInstance}" field="majorLevel"/></span>

                  </li>
                </g:if>

                <g:if test="${courseInstance?.courseStatus}">
                  <li class="fieldcontain">
                    <span id="courseStatus-label" class="property-label"><g:message code="course.courseStatus.label" default="Course Status" /></span>

                    <span class="property-value" aria-labelledby="courseStatus-label"><g:fieldValue bean="${courseInstance}" field="courseStatus"/></span>

                  </li>
                </g:if>

                <g:if test="${courseInstance?.currentTerm}">
                  <li class="fieldcontain">
                    <span id="currentTerm-label" class="property-label"><g:message code="course.currentTerm.label" default="Current Term" /></span>

                    <span class="property-value" aria-labelledby="currentTerm-label"><g:fieldValue bean="${courseInstance}" field="currentTerm"/></span>

                  </li>
                </g:if>

              

                <g:if test="${courseInstance?.majorName}">
                  <li class="fieldcontain">
                    <span id="majorName-label" class="property-label"><g:message code="course.majorName.label" default="Major Name" /></span>

                    <span class="property-value" aria-labelledby="majorName-label"><g:fieldValue bean="${courseInstance}" field="majorName"/></span>

                  </li>
                </g:if>

                <g:if test="${courseInstance?.ruleCode}">
                  <li class="fieldcontain">
                    <span id="ruleCode-label" class="property-label"><g:message code="course.ruleCode.label" default="Rule Code" /></span>

                    <span class="property-value" aria-labelledby="ruleCode-label"><g:fieldValue bean="${courseInstance}" field="ruleCode"/></span>

                  </li>
                </g:if>
                
                
              </ol>
              <g:form>
                <fieldset class="buttons">
                  <g:hiddenField name="id" value="${courseInstance?.id}" />
                  <shiro:hasPermission permission="Course:edit">
                  <g:link class="gh_button" action="edit" id="${courseInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
                  <g:actionSubmit class="gh_button icon danger" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
                  </shiro:hasPermission>
                 
                <a href="#" onclick="javascript:history.back(-1);return false;" class="gh_button list">返回</a>
                  
                </fieldset>
              </g:form>
            </div>


            <!-- end -->
          </div>
        </div>
      </div>
    </div>
  </div>


</body>
</html>
